<template>
    <div class="button-base-div">
        <button type="button" v-on:click="clickEventFunction($event)" class="button-base">{{text}}</button>
    </div>
</template>

<script>
export default {
  name: "Button",
  props:{
    text:String,
    clickFunction:Function,
    extendValue:{}
  },
  methods:{
    clickEventFunction:function (event) {
      this.clickFunction(event,this.extendValue);
    }
  }
}
</script>

<style scoped>
    .button-base-div{
      display: inline-block;
      padding-bottom: 15px;
    }
    .button-base{
      height: 44px;
      margin-right: 6px;
      margin-left: 6px;
      padding-right: 15px;
      padding-left: 15px;
      background: #227722;
      text-align: center;
      font-weight: bold;
      font-size: 15px;
      color: white;
      border: 1px #bbbbbb solid;
      border-radius: 3px;
    }
    .button-base:active{
      height: 44px;
      margin-right: 6px;
      margin-left: 6px;
      padding-right: 15px;
      padding-left: 15px;
      background: #3333ff;
      text-align: center;
      font-weight: bold;
      font-size: 15px;
      color: white;
      border: 1px darkseagreen solid;
      border-radius: 3px;
    }
</style>